#pragma once
#include <cocos2d.h>
#include "pugixml.hpp"
#include "Enemy.h"

using namespace pugi;
USING_NS_CC;

class EnemyFactory : public CCObject
{
public:
	EnemyFactory(void);
	~EnemyFactory(void);

	bool init();
	void parseXml(xml_node node);
	Enemy* createEnemy();

	CC_SYNTHESIZE_RETAIN(CCString*, _id, Id);
	CC_SYNTHESIZE(CCSize, _bound, Bound);
	CC_SYNTHESIZE_RETAIN(CCString*, _strategy, Strategy); // No need in Factory
	CC_SYNTHESIZE_RETAIN(CCArray*, _listResource, Resources);
	CREATE_FUNC(EnemyFactory);
};

